package education.social;

import weibo.main.AuthorizeActivity;

import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.os.Bundle;
import android.widget.Button;

public class Education_Activity extends Activity {
	
	//private ProgressDialog mSpinner;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.enterance);
        
        //mSpinner = new ProgressDialog(this);
        
        Button startButton = (Button)this.findViewById(R.id.button1);
        startButton.setOnClickListener(mGotoWeiboListener);
        
        Button MyButton = (Button)this.findViewById(R.id.button2);
        MyButton.setOnClickListener(mGotoMyDemoListener);
       
        };
        
        private OnClickListener mGotoWeiboListener = new OnClickListener() {
            public void onClick(View v) {
            	Intent intent = new Intent();
            	intent.setClass(Education_Activity.this, AuthorizeActivity.class);
        		startActivity(intent);
        		//mSpinner.show();
        		finish();
            }
        };
        
        private OnClickListener mGotoMyDemoListener = new OnClickListener() {
            public void onClick(View v) {
            	Intent intent = new Intent();
            	intent.setClass(Education_Activity.this, Logon_Activity.class);
        		startActivity(intent);
        		
        		finish();
            }
        };
}